home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Archiving question
- Sent: 3/16/96 11:12 PM
- Received: 3/18/96 7:01 AM
- From: Jim Lloyd, jim@melongem.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- At 7:26 PM 3/16/96, Arni McKinley wrote:
- >Let's suppose that I keep a pointer to an object, foo, in a class that I am
- >archiving:
- >
- >class FW_CLASS_ATTR CoolStuff
- >{
- > MyClass *foo;
- > etc
- >}
- >
- >When I write this CoolStuff out to the archive, it looks something like this:
- >
- >void CoolStuff::Flatten( FW_CWritableStream& archive )
- >{
- > FW_WRITE_DYNAMIC_OBJECT( archive, foo, MyClass );
- >}
- >
- >
- >What happens if foo is NULL? Will FW_READ_DYNAMIC_OBJECT recognize it as such?
-
- In ODF 1.0d11 you can't ask the archiver to write out a NULL pointer (i.e.
- it will crash). It was just something I hadn't designed for. In ODF 1
- I've fixed that design oversight, and the archiver does the right thing
- when writing (and later reading) NULL pointers.
-
- Jim Lloyd
- ODF Team
-
-